package cn.dakaqi.entities;

import cn.dakaqi.utils.Clock;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * Copyright: Copyright (c)2016
 * Company: 志愿者打卡器(www.dakaqi.cn)
 * 类名称: PassportAppointmentDate <br>
 * 类描述: 基地护照预约时间管理
 *
 * @author: ChunYang.Zhang
 * @since: 2016/10/24 11:26
 * @version: 1.0.0
 */
@Entity
@Table(name = "U_PASSPORT_APPOINTMENT_DATE")
@Data
@ToString
public class PassportAppointmentDate extends IdEntity
{
    public static final Integer STATUS_YES = 10;
    public static final Integer STATUS_NO = -10;

    private Long baseAddressId;
    private String day;
    private String times;
    private int status;
    private int num;
    private Date createTime;

    public PassportAppointmentDate()
    {
    }

    public PassportAppointmentDate(Long baseAddressId, String day, String times,int num)
    {
        this.baseAddressId = baseAddressId;
        this.day = day;
        this.times = times;
        this.status = STATUS_YES;
        this.num = num;
        this.createTime = Clock.DEFAULT.getCurrentDate();
    }
}
